package com.example.myapplication.view;

import android.content.Context;
import androidx.appcompat.widget.AppCompatTextView;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.appcompat.widget.AppCompatTextView;

import com.example.myapplication.R;

/**
 * @author: rongfeng
 * @date: 2020/10/10
 * @description 幸运礼物大奖活动跑道
 */
public class LuckyGiftTrackView extends RelativeLayout {
    private View mView;
    private ImageView img_luck_gift_user_head;
    private TextView tv_luck_gift_name;
    private AppCompatTextView tv_coin_value;

    public LuckyGiftTrackView(Context context, AttributeSet attrs) {
        super(context, attrs);
        mView = LayoutInflater.from(context).inflate(R.layout.view_luck_gift_track, this);
        tv_luck_gift_name = mView.findViewById(R.id.tv_luck_gift_name);
        tv_coin_value = mView.findViewById(R.id.tv_coin_value);
        img_luck_gift_user_head = mView.findViewById(R.id.img_luck_gift_user_head);
    }

    public void setData(){
        tv_luck_gift_name.setText("礼物名称123");
        tv_coin_value.setText("1245678酷币");
    }
}
